/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.lihle.designconceptsprinciples.question3.dependencyinversion.obey.model.impl;

import com.lihle.designconceptsprinciples.question3.dependencyinversion.obey.model.TransferDInterface;
import com.lihle.designconceptsprinciples.question3.dependencyinversion.obey.model.TransferSInterface;

/**
 *
 * @author user
 */
public class TransferManager  {
    
    public TransferSInterface source;
    public TransferDInterface destination;
    public double untits;
    
    public TransferDInterface getDestination() {
        return destination;
    }

    public void setDestination(TransferDInterface destination) {
        this.destination = destination;
    }

    public TransferSInterface getSource() {
        return source;
    }

    public void setSource(TransferSInterface source) {
        this.source = source;
    }
    public double getUntits() {
        return untits;
    }

    public void setUntits(double untits) {
        this.untits = untits;
    }
    
    public void transter(){
        source.removeFounds(untits);
        destination.addFound(untits);
        
    }
}
